package com.ruoyi.waterPrice.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.business.waterPrice.WiFarmbookR;
import com.ruoyi.waterPrice.mapper.WiFarmbookRMapper;
import com.ruoyi.waterPrice.service.IWiFarmbookRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 农户缴费流水账Service业务层处理
 * 
 * @author ps
 * @date 2023-02-17
 */
@Service
public class WiFarmbookRServiceImpl implements IWiFarmbookRService
{
    @Autowired
    private WiFarmbookRMapper wiFarmbookRMapper;

    /**
     * 查询农户缴费流水账
     * 
     * @param feeYr 农户缴费流水账主键
     * @return 农户缴费流水账
     */
    @Override
    public WiFarmbookR selectWiFarmbookRByFeeYr(String feeYr)
    {
        return wiFarmbookRMapper.selectWiFarmbookRByFeeYr(feeYr);
    }

    /**
     * 查询农户缴费流水账列表
     * 
     * @param wiFarmbookR 农户缴费流水账
     * @return 农户缴费流水账
     */
    @Override
    public List<WiFarmbookR> selectWiFarmbookRList(WiFarmbookR wiFarmbookR)
    {
        return wiFarmbookRMapper.selectWiFarmbookRList(wiFarmbookR);
    }

    /**
     * 新增农户缴费流水账
     * 
     * @param wiFarmbookR 农户缴费流水账
     * @return 结果
     */
    @Override
    public int insertWiFarmbookR(WiFarmbookR wiFarmbookR)
    {
        return wiFarmbookRMapper.insertWiFarmbookR(wiFarmbookR);
    }

    /**
     * 修改农户缴费流水账
     * 
     * @param wiFarmbookR 农户缴费流水账
     * @return 结果
     */
    @Override
    public int updateWiFarmbookR(WiFarmbookR wiFarmbookR)
    {
        return wiFarmbookRMapper.updateWiFarmbookR(wiFarmbookR);
    }

    /**
     * 批量删除农户缴费流水账
     * 
     * @param feeYrs 需要删除的农户缴费流水账主键
     * @return 结果
     */
    @Override
    public int deleteWiFarmbookRByFeeYrs(String[] feeYrs)
    {
        return wiFarmbookRMapper.deleteWiFarmbookRByFeeYrs(feeYrs);
    }

    /**
     * 删除农户缴费流水账信息
     * 
     * @param feeYr 农户缴费流水账主键
     * @return 结果
     */
    @Override
    public int deleteWiFarmbookRByFeeYr(String feeYr)
    {
        return wiFarmbookRMapper.deleteWiFarmbookRByFeeYr(feeYr);
    }
}
